package com.gxa.service;

import com.gxa.common.R;
import com.gxa.entity.DistrictSysOrganization;

public interface DistrictOrganizationService {
    /**
     * 添加组织信息
     * @param districtSysOrganization
     * @return
     */
    R addOrganization(DistrictSysOrganization districtSysOrganization);

    /**
     * 分页查询对应的区级组织信息
     * @param currentPage
     * @param pageSize
     * @param topOrganization
     * @return
     */
    R queryAllOrganizationsByPage(int currentPage,int pageSize,String topOrganization);

    /**
     * 修改组织信息
     * @param districtSysOrganization
     * @return
     */
    R updateOrganization(DistrictSysOrganization districtSysOrganization);

    /**
     * 根据组织编号删除组织信息
     * @param id
     * @return
     */
    R deleteOrganizationById(int id);

    /**
     * 查询对应区级的所有组织信息
     * @return
     */
    R queryAllOrganizations(String topOrganization);
}
